# Contributor: Adam Thiede <me@adamthiede.com>
# Maintainer: Adam Thiede <me@adamthiede.com>
pkgname=bluetuith
pkgver=0.2.0
pkgrel=0
pkgdesc="TUI-based bluetooth connection manager"
url="https://github.com/darkhz/bluetuith"
arch="all"
license="MIT"
depends="bluez dbus"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/darkhz/bluetuith/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build
}

check() {
	go test -v
}

package() {
	install -Dm0755 "$pkgname" "$pkgdir"/usr/bin/"$pkgname"
}

sha512sums="
bc17842adddcef3beb89708f1f9505035e2a71a9a9755894ad2ecdaac5ca90c823a57b90033b369f4c759b259830710d3e5a0b84fcd9bbc79c4b2697fb0234fd  bluetuith-0.2.0.tar.gz
"
